import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
import {MenuServiceService} from '../menu-service.service';
@Component({
  selector: 'app-left-nav',
  styleUrls: ['./left-nav.component.less'],
  templateUrl: './left-nav.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class LeftNavComponent implements OnInit {

  menus;
  panelOpenState = false;
  activeItem = undefined;
  constructor(private menuService: MenuServiceService) {

  }

  ngOnInit(): void {
    this.menus = this.menuService.getMenus();
  }

  trackByItems(index: number, item: object): number {
    return index;
  }

}
